#ifndef UIADVANCEOPTIONSDIALOG_H
#define UIADVANCEOPTIONSDIALOG_H

#include <QDialog>
#include <QModelIndex>
#include <QKeyEvent>

#include "../../Headers/Classes/myutils.h"
#include "../../Headers/Classes/advancedoption.h"

namespace Ui {
    class AdvanceOptionsDialog;
}

class AdvanceOptionsDialog : public QDialog
{
    Q_OBJECT

public:
    explicit AdvanceOptionsDialog(QWidget *parent = 0);
    ~AdvanceOptionsDialog();

    void Update();
    AdvancedOption * getCurrentAdvancedOption();

    bool checkSelected();

private slots:
    void on_createButton_clicked();

    void on_editButton_clicked();

    void on_deleteButton_clicked();

    void on_closeButton_clicked();

    void on_tableView_doubleClicked(const QModelIndex &index);

    void on_tableView_entered(const QModelIndex &index);

    void on_tableView_pressed(const QModelIndex &index);

    void on_tableView_activated(const QModelIndex &index);

    void keyPressEvent(QKeyEvent *event);

private:
    Ui::AdvanceOptionsDialog *ui;
};

#endif // UIADVANCEOPTIONSDIALOG_H
